package com.lhx.arrray.bilibili;

public class array_19 {
    public static int findLength(int[] nums) {
        int max = 0;
        int index = 1;
        int i = 0;
        int j = 1;
        while(j<nums.length) {
            if(nums[i] < nums[j] && j!=nums.length-1) {
                index++;
               } else {
                if(j==nums.length-1) {
                    index++;
                }
                max = Math.max(index,max);
                index = 1;
            }
            i++;
            j++;
        }
        return max;
    }

    public static void main(String[] args) {
        int[] nums = new int[]{1,2,3,2,3,4,5,6,3,4,5};
        System.out.println(findLength(nums));
    }
}
